package com.iterator.service.wechat.lc;

import com.iterator.bean.web.pojo.dhy.MallRegion;
import com.iterator.bean.web.pojo.dhy.MallRegionExample;
import com.iterator.mapper.web.marketManager.MallRegionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegionServiceImpl implements RegionService{
    @Autowired
    MallRegionMapper regionMapper;
    @Override
    public List<MallRegion> getList(Integer pid) {
        MallRegionExample regionExample = new MallRegionExample();
        MallRegionExample.Criteria criteria = regionExample.createCriteria();
        criteria.andPidEqualTo(pid);
        List<MallRegion> regionList = regionMapper.selectByExample(regionExample);
        return regionList;
    }
}
